package com.shiro.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shiro.pojo.AuthorityBean;
import com.shiro.pojo.RoleBean;
import com.shiro.pojo.UserBean;

public interface UserBeanMapper {
	List<UserBean> selectUserAll();
	UserBean selectUserById(Integer id);
	UserBean selectUserByUsernameAndPassword(@Param("username") String username,@Param("password")String password);
	UserBean selectUserByName(@Param("username")String username);
	int deleteUser(@Param("id")Integer id);
	int updateUser(UserBean user);
	int insertUser(UserBean user);
	List<RoleBean> selectRoleByUsername(@Param("username")String username);
	List<AuthorityBean> selectAuthorityByUsername(@Param("username")String username);
}